import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
import home from "../components/home/home";
import context from "../components/home/context";
import group from "../components/home/group";
import blogEssayInfo from "../components/home/blogEssayInfo";
import search from "../components/home/search";
export default new Router({
  routes: [
    {
      path: '/home',
      name: 'home',
      component: home,
      children:[
        {
          path: 'context',
          name: 'context',
          component: context,
        },
        {
          path: 'search',
          name: 'search',
          component: search,
        },
        {
          path: 'group',
          name: 'group',
          component: group,
        },
        {
          path: 'blogEssayInfo',
          name: 'blogEssayInfo',
          component: blogEssayInfo,
        }
      ]
    }
    /*{
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/blog',
      name: 'blogHome',
      component: blogHome
    },
   ,*/
  ]
})
